<!--
 * @Descripttion:
 * @version: V1.0.0
 * @Author: Shuangshuang Song
 * @Date: 2020-06-17 11:20:00
 * @LastEditors: Shuangshuang Song
 * @LastEditTime: 2020-12-17 16:26:07
-->
<style rel="stylesheet/scss" lang="scss" >
.pro-gzq-home-log{
  background: #ffffff;
  .content-box{
    .day-box{
      border-width:0;
    }
      // border: 1px solid #e4e4e4;
  }
}
</style>
<template>
  <div class="pro-gzq-home-log">
    <div
      v-show="!visible"
      @click="setVisible(true)"
      class="empty-box"
    >
      <i class="jeicon jeicon-signing" />
      <span v-if="lang=='zh_CN'">提交日志...</span>
      <span v-else>Commit log...</span>
    </div>
    <div
      v-show="visible"
      class="content-box"
    >
      <log-record />
    </div>
  </div>
</template>

<script>
import LogRecord from '../log/record.vue';

export default {
  components: { LogRecord },
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      lang: JE.getCookies('je-local-lang') || 'zh_CN',
    };
  },
  methods: {
    setVisible(visible) {
      this.$emit('setVisible', visible);
    },
  },
};
</script>
